From 805abe0ba33875a0278c4a0c6e8fa76853fbd703 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 23 Sep 2023 16:27:45 +0100 Subject: Extract Patio code gen for tuples --- ...ang.compiler.testing.snapshots.Snapshotter)].expected | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenTupleCreateTests]/[method:canGenerateCodeForTupleCreate(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected') diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenTupleCreateTests]/[method:canGenerateCodeForTupleCreate(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenTupleCreateTests]/[method:canGenerateCodeForTupleCreate(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected index d725544c..cd70b0de 100644 --- a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenTupleCreateTests]/[method:canGenerateCodeForTupleCreate(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenTupleCreateTests]/[method:canGenerateCodeForTupleCreate(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -2,25 +2,26 @@ Compilation unit elements: Locals: - * (val "tuplePointer__0" data-ptr) * (val "tupleElement__2__0" int) * (val "tupleElement__1__0" int) * (val "tupleElement__0__0" int) + * (val "tuplePointer__0" data-ptr) * (val "tuple__0" int) Instructions: ( - (alloc-heap (local "tuplePointer__0") (struct (int int int))) (local-store (local "tupleElement__2__0") (local "d")) + (local-store (local "tupleElement__1__0") (local "c")) + (local-store (local "tupleElement__0__0") (local "b")) + (alloc-heap (local "tuplePointer__0") (struct (int int int))) ( memory-store pointer=(local "tuplePointer__0") layout=(struct (int int int)) - offset=(2) - value=(local "tupleElement__2__0") + offset=(0) + value=(local "tupleElement__0__0") ) - (local-store (local "tupleElement__1__0") (local "c")) ( memory-store pointer=(local "tuplePointer__0") @@ -28,13 +29,12 @@ Instructions: offset=(1) value=(local "tupleElement__1__0") ) - (local-store (local "tupleElement__0__0") (local "b")) ( memory-store pointer=(local "tuplePointer__0") layout=(struct (int int int)) - offset=(0) - value=(local "tupleElement__0__0") + offset=(2) + value=(local "tupleElement__2__0") ) (data-ptr-to-int (local "tuple__0") (local "tuplePointer__0")) ) -- cgit v1.2.3